#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include <stdio.h>
int main() {
    long long n, num[100005] = { 0, 1, 1 };
    scanf("%lld", &n);
    for (int i = 3; i <= n; i++) {
        num[i] = (num[i - 1] + num[i - 2]) % 1000000007;
    }
    printf("%lld\n", num[n]);
    return 0;
}
